<?php
require_once("../includes/config.inc.php");
if(!$_GET['sorry']) { validate_admin(); }

?>

<html>
<head>
<title><?php echo $ADMIN_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>

<body topmargin="0" leftmargin="0" rightmargin="0">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
    	<td colspan="2"><?php include"header.inc.php"; ?></td>
	</tr>  
   <tr align="center">
   	    <td colspan="2">
			<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">													
				<TR>
				<TD width="200" valign="top" class="left_bg" align="right" ><br><?php include("left.inc.php");?></td>
				<td height="10" valign="top" class="mainBoxBg">		
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
						    <tr>
							    <td width="100%" valign="top" align="center">
									<table width="100%"  border="0" cellpadding="0" cellspacing="1" >
							          	<tr>
								            <td  align="left" background="images/heading_bg.gif" bgcolor="#FFFFFF" class="h1">
												<table   border="0" cellspacing="0" cellpadding="0" align="left" width="100%">
								              		<tr>
							    				       	<td height="42" background="images/bg3.gif" width="53"  class="h1" align="right"><img src="images/cp_icon.gif" width="25" height="25" hspace="5"></td>
											           	<td height="42"  background="images/bg3.gif" width="738" align="left" class="h1">Administration Home </td>
                				              		</tr>
            									</table>
											</td>
							          	</tr>
							          	<tr>
								            <td height="272" align="center" valign="top" class="mainBoxBg" ><br>
							              		<?php if(!$_GET['sorry']) { ?>
												<table width="85%" border="0" cellspacing="0" cellpadding="5">
							                   		<tr align="center">
								                        <td class="gray_txt" align="left" valign="top"><b>Welcome to 
							                              <?php echo $SITE_NAME; ?>
													      Administrative Suite </b> <br>
													      Please use the navigation links on the left side to access different sections of the main administartion suite.</td>
								                    </tr>
						                       </table>	<?php } else { ?>
											   <table width="85%" border="0" cellspacing="0" cellpadding="5">
							                   		<tr align="center">
								                        <td class="gray_txt" align="left" valign="top"><?php displaySessMesg(); ?></td>
								                    </tr>
						                       </table>	<?php } ?>								  </td>
							          	</tr>
					        	</table>
							</td>
					    </tr>
			    	</table>
				</td>
			</TR>
		</TABLE>
	</td>
</tr>
<tr>
	<td height="1" colspan="2"><?php include ("footer.inc.php"); ?></td>
</tr> 
</table>
</body>
</html>
